package com.opennews.openplatform.dto.app.error.report;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;

import java.util.Map;

@Getter
@Setter
@JsonIgnoreProperties(ignoreUnknown = true)
public class AppErrorReportDto {
    @NotBlank(message = "errorMessage can't be blank")
    @Size(max = 1000, message = "errorMessage must be at most 1000 characters")
    private String errorMessage;

    @Size(max = 4000, message = "stackTrace must be at most 4000 characters")
    private String stackTrace;

    private Map<String, Object> deviceInfo;
    private Map<String, Object> systemInfo;

    private String username;
}